package com.example.model.pojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 学生选题记录实体类，对应数据库student_selection表
 */
@Data
@Schema(name = "学生选题记录实体类", description = "学生选题信息，对应数据库student_selection表")
public class StudentSelection {
    @Schema(description = "选题记录ID，主键", required = true, example = "1")
    private Integer id;             // 选题记录ID，主键
    
    @Schema(description = "组长用户ID，外键关联user表", required = true, example = "1")
    private Integer groupLeaderId;  // 组长用户ID，外键关联user表
    
    @Schema(description = "选题ID，外键关联course_topic表", required = true, example = "1")
    private Integer topicId;        // 选题ID，外键关联course_topic表
    
    @Schema(description = "学生选题时间", required = true, example = "2023-09-01T09:00:00")
    private LocalDateTime selectionTime;     // 选题时间
    
    @Schema(description = "状态: 0-已取消, 1-已确认", required = true, example = "1")
    private Integer status;         // 状态: 0-已取消, 1-已确认
}